package com.example.homework.entity;

import java.time.LocalDateTime;
import java.math.BigDecimal;


    public class Orders {
        private Long id;

        private Long userxxx;

        private Long productxxx;

        private Integer quantity;

        private BigDecimal totalAmount;

        private Integer status;

        private LocalDateTime createdAt;

        public Orders() {
        }

        public Orders(Long id, Long userxxx, Long productxxx, Integer quantity,
                      BigDecimal totalAmount, Integer status, LocalDateTime createdAt) {
            this.id = id;
            this.userxxx = userxxx;
            this.productxxx = productxxx;
            this.quantity = quantity;
            this.totalAmount = totalAmount;
            this.status = status;
            this.createdAt = createdAt;
        }

        // Getter和Setter方法
        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public Long getUserxxx() {
            return userxxx;
        }

        public void setUserxxx(Long userxxx) {
            this.userxxx = userxxx;
        }

        public Long getProductxxx() {
            return productxxx;
        }

        public void setProductxxx(Long productxxx) {
            this.productxxx = productxxx;
        }

        public Integer getQuantity() {
            return quantity;
        }

        public void setQuantity(Integer quantity) {
            this.quantity = quantity;
        }

        public BigDecimal getTotalAmount() {
            return totalAmount;
        }

        public void setTotalAmount(BigDecimal totalAmount) {
            this.totalAmount = totalAmount;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public LocalDateTime getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(LocalDateTime createdAt) {
            this.createdAt = createdAt;
        }

        @Override
        public String toString() {
            return "Orders{" +
                    "id=" + id +
                    ", userxxx=" + userxxx +
                    ", productxxx=" + productxxx +
                    ", quantity=" + quantity +
                    ", totalAmount=" + totalAmount +
                    ", status=" + status +
                    ", createdAt=" + createdAt +
                    '}';
        }
    }

